package com.szwistar.common.comm;

import java.net.SocketAddress;

/**
 * 长整数型地址
 */
public class IntegerAddress extends SocketAddress {
	private static final long serialVersionUID = 8908106426795958327L;
	protected long express = -1;

	public IntegerAddress(long express) {
		super();
		this.express = express;
	}

	public long getValue() {
		return express;
	}

	public int getIntValue() {
		return (int)express;
	}

	public void setValue(long express) {
		this.express = express;
	}

	@Override
	public String toString() {
		return Long.toString(express);
	}

	public void fromString(String express) {
		this.express = Long.parseLong(express);
	}
}
